<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>易夫森管理系统</title>
		<link rel="stylesheet" type="text/css" href="css/yfs.css">
	</head>

	<body>
		<table width="900" align="center" height="100%" border="0" margin="0"
			padding="0" cellspacing="0" cellpadding="0">
			<tr>
				<td valign="top" width="100%" height="30" colspan="6">
					<img src="images/logo.jpg">
				</td>
			</tr>
			<tr valign="top">
				<td width="2px" bgcolor="#add2da">
					&nbsp;
				</td>
				<td align="left" width="30px"><br><jsp:include page="left.jsp"></jsp:include>
				<br></td>
				<td width="2px" bgcolor="#add2da">
					&nbsp;
				</td>
				<td valign="top" width="750">

					<form action="<%=path%>/parsebbs" method="post">
						<table style="font-size: 12px;">
							<tr>
								<td>
									网站名称
								</td>
								<td>
									<select name="site">
										<c:forEach items="${sitelist}" var="kl">
											<option value="${kl.id}">
												${kl.site_ch}
											</option>
										</c:forEach>
									</select>
								</td>
							</tr>
							<tr>
								<td>
									网站正文正则
								</td>
								<td>
									<input type="text" name="bodyregex" />
								</td>
							</tr>
							<tr>
								<td>
									回复内容正则
								</td>
								<td>
									<input type="text" name="reply" />
								</td>
							</tr>
							<tr>
								<td>
									回复数正则
								</td>
								<td>
									<input type="text" name="replycount" />
								</td>
							</tr>
							<tr>
								<td>
									浏览数正则
								</td>
								<td>
									<input type="text" name="browsecount" />
								</td>
							</tr>
							<tr>
								<td>
									下一页正则
								</td>
								<td>
									<input type="text" name="nextreply" />
								</td>
							</tr>
							<tr>
							<tr>
								<td>
									发表时间
								</td>
								<td>
									<input type="text" name="publish_regex" />
								</td>
							</tr>
							<tr>
								<td>
									作者正则
								</td>
								<td>
									<input type="text" name="author_regex" />
								</td>
							</tr>
							<!-- 
							<tr>
								<td>
									网站host（前缀）
								</td>
								<td>
									<input type="text" name="prefix" />
								</td>
							</tr>
							 -->
							<tr>
								<td>
									网站编码
								</td>
								<td>
									<select name="encode" style="width: 155px;">
										<option value=gb2312>
											gb2312
										</option>
										<option value=UTF-8>
											UTF-8
										</option>
									</select>
								</td>
							</tr>
							<tr>
								<td colspan="2" align="center">
									<input type="submit" value="提交" />
								</td>
							</tr>
						</table>
					</form>
					<span>${msg}</span>
					<table>
						<thead style="color: red">
							<b>已经添加配置</b>
						</thead>
						<th>
							网站名称
						</th>
						<!--
						<th>
							正文正则
						</th>
						 
						<th>
							下一页正则
						</th>
						-->
						<th>
							操作
						</th>
						<c:forEach items="${bbslist}" var="bbs">
							<tr>
								<td>
									${bbs.siteName}
								</td>
								<!-- 
								<td>
									${bbs.body_regex}
								</td>
								
								<td>
									${bbs.next_regex}
								</td>
								-->
								<td>
									<a href="<%=path%>/deleteBbsConf?id=${bbs.id}">删除</a>
								</td>
							</tr>
						</c:forEach>
					</table>
				</td>
				<td width="2px" bgcolor="#add2da">
					&nbsp;
				</td>
			</tr>
		</table>
	</body>
</html>
